# encoding: utf-8
'''
@学生:李槟妤
@任务： 实现图片转字符画类I2Char中genCharImage方法pass占位的代码，该方法将图片转化成字符画

'''
'''
    图片转字符画
'''
class I2Char(CharFrame):
    result = None
    def __init__(self, path, limitSize=-1, fill=False, wrap=False):
        self.genCharImage(path, limitSize, fill, wrap)

    def genCharImage(self, path, limitSize=-1, fill=False, wrap=False):
        # 给self.result 字符画字符串赋值
        img=cv2.imread(path,cv2.IMREAD_GRAYSCALE)
        if img is None:
            return
        self.result=self.convert(img,limitSize,fill,wrap)
